﻿<?php
date_default_timezone_set('PRC');

$pwd = 'Todayis:'. date("Y/m/d");//RC4加密密码为空则不加密

$bb = 0;//版本号
$new = 'http://www.aiyuny.top/appyz/app.hlme';//更新下载地址
$newcontent = '1、本次更新了界面|2、解析优化';//更新内容
$user = 'http://www.aiyuny.top/appyz/app.hlme';//用户域名
$api = array( ['api'=> 'http://140.143.18.238/Api/api.parse.php?code=papahelp&url='],
             ['api'=> 'http://yun.baiyug.cn/vip/index.php?url='],
             ['api'=> 'https://vip.mpos.ren/v/?url='],
             ['api'=> 'https://1717ty.duapp.com/ty.php?url='],
             ['api'=> 'https://jx.618g.com/m3u8.php?url='],
             ['api'=> 'http://jx.598110.com/index.php?url='],
             ['api'=> 'http://www.ibb6.com/playm3u8/?url='],
             ['api'=> 'http://yun.baiyug.cn/vip/?url='],
             ['api'=> 'https://vip.hnywkj.cn/?url='],
            );
$agree = '';//支持的平台[qiyi][youku][imgo],空则支持所有

/********************分享参数*****************/
$share_bt = '如意影视';//分享标题
$share_nr = '如意影视是一款免费观看全网影视的APP，随时随地想看就看。';//分享内容
$share_lj = 'https://www.eruyi.cn';//分享连接
$share_img = 'https://s1.ax1x.com/2018/05/22/CRQQ1O.png';//分享图片

/********************分享结束*****************/

/********************幻灯片开始*****************/
$Htpa = 'http://r1.ykimg.com/051000005A742274ADC0B09694095D7A';//幻灯片的图片地址
$Hlja = 'https://www.360kan.com/m/f6LoZxH4Rnb1TR.html';//幻灯片连接
$Hbta = '血拳之双龙劫';//幻灯片标题
$Htpb = 'https://img.alicdn.com/tfs/TB1ZW31miqAXuNjy1XdXXaYcVXa-1190-410.jpg';//幻灯片的图片地址
$Hljb = 'https://www.360kan.com/m/gqbkYxH4Q0L4SB.html';//幻灯片连接
$Hbtb = '奇门遁甲';//幻灯片标题
$Htpc = 'http://r1.ykimg.com/051000005A72F094ADC0AEB2CE0E868E';//幻灯片的图片地址
$Hljc = 'https://www.360kan.com/m/g6TmZRH4RnXASh.html';//幻灯片连接
$Hbtc = '我叫麦克峰之疯狂主播';//幻灯片标题
/********************幻灯片结束*****************/

$share = array('img'=> $share_img,'url'=> $share_lj,'title'=> $share_bt,'data'=> $share_nr);
$slide = array(['img'=> $Htpa,'url'=> $Hlja,'title'=> $Hbta],['img'=> $Htpb,'url'=> $Hljb,'title'=> $Hbtb],['img'=> $Htpc,'url'=> $Hljc,'title'=> $Hbtc]);

$arr = array ('bb'=> $bb,'user'=> rc4($pwd,$user),'interface'=> $api,'agree'=> $agree,'new'=>$new,'newcontent'=> $newcontent,'slide'=> $slide,'share' => $share);
echo json_encode($arr);

function rc4($pwd, $data) {
    $cipher = '';
    $key[] = "";
    $box[] = "";
    $pwd_length = strlen($pwd);
    $data_length = strlen($data);
    for ($i = 0; $i < 256; $i++) {
        $key[$i] = ord($pwd[$i % $pwd_length]);
        $box[$i] = $i;
    }
    for ($j = $i = 0; $i < 256; $i++) {
        $j = ($j + $box[$i] + $key[$i]) % 256;
        $tmp = $box[$i];
        $box[$i] = $box[$j];
        $box[$j] = $tmp;
    }
    for ($a = $j = $i = 0; $i < $data_length; $i++) {
        $a = ($a + 1) % 256;
        $j = ($j + $box[$a]) % 256;
        $tmp = $box[$a];
        $box[$a] = $box[$j];
        $box[$j] = $tmp;
        $k = $box[(($box[$a] + $box[$j]) % 256)];
        $cipher .= chr(ord($data[$i]) ^ $k);
    }
    return bin2hex($cipher);
}
?>